\usepackage[numbers,sort]{natbib}
\usepackage[pdfborder={0 0 0 0}, backref=none]{hyperref} %Enables ``url'' in bib
\usepackage{graphicx}
\hypersetup{
pdfborder=0 0 0
}

\usepackage{listings}
\usepackage{color}

\definecolor{light-gray}{gray}{0.80}
\definecolor{gray95}{gray}{.95}
\definecolor{gray92}{gray}{.92}
\definecolor{gray75}{gray}{.75}
\definecolor{gray45}{gray}{.45}

\bibliographystyle{plainnat}

\lstdefinestyle{code}
{ 
	%numbers=left,
	numbersep=5pt, 
	stepnumber=1,
	captionpos=b,  %bottom
	keywordstyle=\color[rgb]{0,0,1},
	commentstyle=\color[rgb]{0.133,0.545,0.133},
	stringstyle=\color[rgb]{0.627,0.126,0.941},
	framerule=0.5pt,
	linewidth=1.00\textwidth,
	tabsize=2,
	numberbychapter=true,
	basicstyle=\ttfamily\footnotesize,
	breaklines=true,
	showstringspaces=false,
	morecomment=[l]{//},
	morecomment=[s]{/*}{*/},
	emph=[1]{int,char,float,bool,IntegerFormatter,OutFormatter,InFormatter,StreamWriter,Console,ostream,istream},%%%%%%%%%%% Types
	emph=[2]{const,if,while,else,return,operator,true}, %%%%%%%%%%% Keywords
	emphstyle=[1]{\color[rgb]{0,0.7,0.7}},
	emphstyle=[2]{\color[rgb]{0.0,0,1}},
	float=htb,
	breakindent=20pt
}
\renewcommand{\lstlistingname}{Code Snippet}%%Changing the caption to read ``Code snippet''
\newcommand{\secref}[1]{Section~\ref{#1}}	
\newcommand{\subref}[1]{Section~\ref{#1}}	
\newcommand{\coderef}[1]{Code snippet~\ref{#1}}	

\title{I/O, Streams, and Integer Formatting in C++}

\author{Alex Bondo Andersen} 